<div style="padding:8px;">
	<h1>Template &quot;{$tpl.tpl_name}&quot; bearbeiten</h1>
	<form id="tpl_edit_form_{$tpl.tpl_id}" onsubmit="return false;">
	<input type="hidden" name="tpl_id" value="{$tpl.tpl_id}" />
	<div style="border:1px solid #B3B3B3">
		<textarea id="template_code_{$tpl.tpl_id}" name="template_code" style="width:650px;height:400px;border:1px solid #B3B3B3;"> {$tpl.CODE}</textarea>
	</div>
	<input type="submit" class="submitbtn" value="speichern" onclick="{strip}{literal}
foo = function() {

xajax.$({/literal}'tpl_edit_form_{$tpl.tpl_id}'{literal}).onsubmit();
	
	setTimeout(function() {

		
		xajax.request(
		{
			ccdsfun:'ClassEditorTemplatesEditSave',
			ccdsclass:'ccdsClassEditor'
		},
			{{/literal}
				parameters:[xajax.getFormValues('tpl_edit_form_{$tpl.tpl_id}')]
			{literal}	}
		);	
	},500);
};
foo();
	{/literal}{/strip}" />
	</form>

